package com.rotsel.mh3udb.app.lists;

import com.rotsel.mh3udb.app.ListModels.WeaponUpgradeMaterialModel;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;

/**
 * Created by rots on 20.02.14.
 */
public class UpgradeMaterialList {
    private static Map<Integer, ArrayList<WeaponUpgradeMaterialModel>> upgradeMaterialMap;//weaponId, List<amount and materialId>

    private static Map<Integer, ArrayList<WeaponUpgradeMaterialModel>> getUpgradeMaterialMap() {
        if(upgradeMaterialMap == null){
            upgradeMaterialMap = new HashMap<Integer, ArrayList<WeaponUpgradeMaterialModel>>(50);
            //TODO: fill upgrade material lists
        }
        return upgradeMaterialMap;
    }

    public static ArrayList<WeaponUpgradeMaterialModel> getUpgradeMaterialsByWeaponId(int id){
        return getUpgradeMaterialMap().get(id);
    }
}
